<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/aui.css">
    <link rel="stylesheet" type="text/css" href="../css/aui-slide.css">
    <link rel="stylesheet" type="text/css" href="../css/api.css">
    <link rel="stylesheet" type="text/css" href="../css/jquery.mobile-1.4.5.css">
</head>

<body >
    <header class="aui-bar aui-bar-nav" id="header" style="background-color: #f8931f;">
        <span class="aui-iconfont aui-icon-left aui-pull-left" onclick="api.closeWin()">返回</span>
    </header>
    <div class="main" id="main" style="height:100%;">

    </div>
</body>
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery.min.js"></script>
    <script type="text/javascript" src="../script/jquery.mobile-1.4.5.js"></script>
<script type="text/javascript">
    apiready = function() {

        var header = $api.byId('header');
        var headerPos = $api.offset(header);
        var unid=api.pageParam.unid;
        var u=api.pageParam.u;
        var search_inputVal=api.pageParam.search_inputVal;
        // alert(unid);
        // alert(u);
        // aler
        api.openFrame({
            name: 'taobao',
            url: "http://ai.taobao.com/search/index.htm?key="+search_inputVal+"&pid=mm_28837431_13726450_65342481&commend=all&unid="+unid+"&taoke_type=1&u="+u,
            
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: 'auto'
            }
        });
    }
</script>
</html>
